<?php

namespace app\common\cachemodel;

use app\common\model\BaseCache;

class ZhunleAstrWithdrawalRecord extends BaseCache
{
    protected $table = 'wechat_backup_07_18_14_43_00.zhunle_astr_withdrawal_record';

    public function SaveData(array $data)
    {
        try
        {
            $id = $this->insertGetId($data);

            return (int)$id;
        }
        catch (\Exception $e)
        {
            \think\Log::write(__CLASS__ . ' => ' . __FUNCTION__ . '()异常：' . $e->getMessage() . '失败信息：' . $e->getFile() . ':' . $e->getLine(), 'error', true);
            return 0;
        }
    }
}